/*
 This program is submitted as part of an assignment in the
 J2E
 Fall Semester 2010-2011 
 School of Computer Science
 Interdisciplinary Center, Hertzelia, Israel 

 http://www.idc.ac.il 

 Exercise No.         : 3
 File Name            : Player.java
 Names (First Last)   : Itay Sorani, Nadav Ziv, Yonathan Zarsky
 Student No.          : 066530254, 039937883, 039692918
 */

package com.example.logic;

import com.example.models.Buildings.CentralBase;

/**
 * The logical representation of a player in the game
 */
public class Player {
	
	private final int INITIAL_POINTS = 100;
	
	private CentralBase centralBase;
	private int points;
	
	private int towerCounter;
	private int buildingCounter;
	private int unitCounter;
	private int CollectedenemyHitpoint;
	
	/*
	 * constructs a new player
	 */
	public Player () {
		towerCounter = 0;
		buildingCounter = 0;
		unitCounter = 0;
		setPoints(INITIAL_POINTS);
		setCollectedenemyHitpoint(0);
	}
	
	/*
	 * sets the amount of points the player had
	 */
	public void setPoints(int points) {
		this.points = points;
	}
	
	/*
	 * gets the amount of points the player had
	 */
	public int getPoints() {
		return points;
	}

	/*
	 * sets the player's central base 
	 */
	public void setCentralBase(CentralBase centralBase) {
		this.centralBase = centralBase;
	}

	/*
	 * gets the player's central base
	 */
	public CentralBase getCentralBase() {
		return centralBase;
	}

	/*
	 * sets the collected hitpoints from the enemy
	 */
	public void setCollectedenemyHitpoint(int collectedenemyHitpoint) {
		CollectedenemyHitpoint = collectedenemyHitpoint;
	}

	/*
	 * gets the collected hitpoints of the enemy
	 */
	public int getCollectedenemyHitpoint() {
		return CollectedenemyHitpoint;
	}
}
